<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:rich="http://richfaces.org/rich">
      

<body>
			<aside class="grid_7">
				<div class="indent">
					<div class="box">
						<ul class="menu">
							<li><h:link outcome="/pages/management/property_insert">Post New Property</h:link></li>
							<li><h:link outcome="/pages/management/property_main">My Properties</h:link></li>
							<li><h:link outcome="/pages/management/property_search">Search Properties</h:link></li>
						</ul>
					</div>
				
					<h:form id="fm_login" styleClass="login-form">
			<a4j:outputPanel id="login_panel">
				<div class="box1">
						<a4j:outputPanel id="fm_logged" rendered="#{mAccount.loggedIn}">
							<h3>User Information</h3>
						
							<h6><h:outputText value="Welcome! #{mAccount.acc.name}" /></h6>
								<ul class="list1">
								<li><h:link value="User Account Control" outcome="/pages/management/account_control" style="text-decoration:none;"></h:link></li>
								<li><h:commandLink id="logout" action="#{mAccount.Logout}" value="Logout" style="text-decoration:none;"></h:commandLink></li>
								</ul>
						</a4j:outputPanel>	
						
							
						
						 <a4j:outputPanel id="login_form" rendered="#{!mAccount.loggedIn}">
						<h3>Login Form</h3>				
						<rich:message for="acc_email" />
						<rich:message for="acc_password" />
						<fieldset>
							<div class="field">
								<label>Email: </label><h:inputText value="#{mAccount.acc.email}" id="acc_email" required="true" requiredMessage="Email: Invalid Value !" validator="#{mValidatorLib.EmailValidate}" /> 
							</div>
							<div class="field">
								<label>Password</label><h:inputSecret value="#{mAccount.acc.password}" id="acc_password" requiredMessage="Password: Invalid Value" required="true" validator="#{mValidatorLib.PasswordValidate}" /> 
							</div>
							<ul>
								<li><h:link outcome="forgot_password">Forgot your password?</h:link>
								</li>
								<li><h:link outcome="registration">Create an account.</h:link>
								</li>
							</ul>

							<div class="wrapper">
								<h:commandButton id="login" value="Login" action="#{mAccount.Login}"> </h:commandButton>
							</div>
						</fieldset>
						 </a4j:outputPanel>
						
				
				</div>
				<!-- box1 end -->
			</a4j:outputPanel>	
			</h:form>
				<div class="box1">
						<h3>Sponsor</h3>
						<ul class="ad">
							<li style="text-align: center; margin-bottom:20px;"><h:graphicImage value="/resources/images/logo/anz_logo.jpg" width="150" height="150" /></li>
							<li style="text-align: center; margin-bottom:20px;"><h:graphicImage value="/resources/images/logo/hsbc_logo.gif" width="150" height="150" /></li>
							<li style="text-align: center; margin-bottom:20px;"><h:graphicImage value="/resources/images/logo/wb_logo.jpg" width="150" height="150" /></li>
							<li style="text-align: center; margin-bottom:20px;"><h:graphicImage value="/resources/images/logo/nab_logo.gif" width="150" height="150" /></li>
						</ul>
					</div>
				</div>
			</aside>
</body>
		
</html>